<template>
  <div>
    <div class="title">预约信息</div>
    <div class="info">
      <div class="category">
        <div class="left">就诊人:</div>
        <div class="right">{{ detaildata?.userVisitCard.username }}</div>
      </div>
      <div class="category">
        <div class="left">电话号码:</div>
        <div class="right">{{ detaildata?.userVisitCard.mobile }}</div>
      </div>
      <div class="category">
        <div class="left">性别:</div>
        <div class="right">{{ detaildata?.userVisitCard.sex==1?'男':'女' }}</div>
      </div>
      <!--    <div class="category">
        <div class="left">年龄:</div>
        <div class="right">4545</div>
      </div> -->
      <div class="category">
        <div class="left">挂号序号:</div>
        <div class="right">{{detaildata?.serialNo}}</div>
      </div>
      <div class="category">
        <div class="left">接诊专家:</div>
        <div class="right">{{ detaildata?.expert.realName}}</div>
      </div>
      <div class="category">
        <div class="left">就诊时段:</div>
        <div class="right">{{ detaildata?.timeSlot}}</div>
      </div>
      <div class="category">
        <div class="left">就诊卡号:</div>
        <div class="right">{{ detaildata?.visitCardNo}}</div>
      </div>
      <div class="category">
        <div class="left">院区场地:</div>
        <div class="right">{{ detaildata?.site?.siteName }}</div>
      </div>
      <div class="btnback" @click="$router.push('/quickConsultation')" v-if="showBtn">返回</div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    showBtn: {
      type: Boolean,
      default: true,
    },
    detaildata: Object,
  },
};
</script>
<style lang='less' scoped>
.info {
  padding-left: 1.25rem;
}
.btnback {
  padding: 0.625rem 1.5625rem;
  border-radius: 0.25rem;
  display: inline-block;
  cursor: pointer;
  background: #fd5151;
  color: #fff;
  font-size: 0.875rem;
}
.category {
  font-size: 0.875rem;
  line-height: 3rem;
  display: flex;
  letter-spacing: 0.0938rem;
}

.left {
  color: #9c9c9c;
}
.right {
  color: #1f1f1f;
  font-weight: 500;
}
.title {
  color: #1f1f1f;
  font-weight: 600;
  border-left: 0.3125rem solid var(--darkColor);
  padding-left: 0.625rem;
}
</style>